package cn.com.zero.front.auth.vo;

import cn.com.zero.api.auth.vo.LockedUserVO;

/**
 * @author xiongxj
 * @version 1.0.0
 * @Description 用户端锁定用户VO类
 * @createTime 2023/3/30 16:58
 */
public class FrontLockedUserVO extends LockedUserVO {

    private static final long serialVersionUID = 3132556191079453400L;
    /**
     * 用户手机号
     */
    private String mobile;

    /**
     * 用户名称
     */
    private String userName;

    @Override
    public LockedUserVO clone(LockedUserVO lockedUserVO) {
        FrontLockedUserVO frontLockedUserVO = null;
        try {
            frontLockedUserVO = (FrontLockedUserVO) super.clone();
        } catch (CloneNotSupportedException e) {
            frontLockedUserVO = new FrontLockedUserVO();
        }
        frontLockedUserVO.setUserId(lockedUserVO.getUserId());
        frontLockedUserVO.setLoginIp(lockedUserVO.getLoginIp());
        frontLockedUserVO.setLoginTime(lockedUserVO.getLoginTime());
        frontLockedUserVO.setLockedTime(lockedUserVO.getLockedTime());
        return frontLockedUserVO;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
